# 主程序
from flask import Flask
# 引入flask的restful-api框架
import flask_restful as restful

app = Flask(__name__)
api = restful.Api(app)
host = "0.0.0.0"
port = 80


class HelloWorld(restful.Resource):
    def get(self):
        return {'hello': 'world'}


api.add_resource(HelloWorld, '/')

if __name__ == '__main__':
    app.run(host, port, debug=True)
